package com.kaka.bus.engine.repay.detail;

import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.bean.RepayInfo;
import com.kaka.bus.bean.Single;
import com.kaka.bus.mvp.BasePresenter;
import com.kaka.bus.mvp.BaseView;

/**
 * Created by OnionMac on 2018/1/18.
 */

public interface RepayDetailContract {

    interface View extends BaseView{
        void faild();
        void getInfoSuccess(HttpWrapper<RepayInfo> repayInfoHttpWrapper);

        void showRepayResult(HttpWrapper<String> data);

        void getCodeSuccess(HttpWrapper<Single> wrapper);
    }

    interface Presenter extends BasePresenter<View>{

        void getRepayInfo(String userId,String token);
        boolean sendyzm(String phone, String tokenKey,String bankNum);
        void commitRepayInfo(String phone,String bankId, String bankNum, String borrNum, String optAmout, String triggerStyle,int type,String validateCode);

    }
}
